package com.frame.service.impl;


import com.frame.domain.SysFactory;
import com.frame.mapper.SysFactoryMapper;
import com.frame.service.SysFactoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class SysFactoryServiceImpl implements SysFactoryService {

    @Autowired
    SysFactoryMapper sysFactoryMapper;

    @Override
    public List<SysFactory> FactoryList(SysFactory sysFactory) {
        return sysFactoryMapper.FactoryList(sysFactory);
    }

    @Override
    public boolean FactoryAdd(SysFactory sysFactory) {
        return sysFactoryMapper.FactoryAdd(sysFactory);
    }

    @Override
    public boolean FactoryDelete(Integer factoryId) {
        return sysFactoryMapper.FactoryDelete(factoryId);
    }

    @Override
    public boolean FactoryUpdate(SysFactory sysFactory) {
        return sysFactoryMapper.FactoryUpdate(sysFactory);
    }

    @Override
    public List<SysFactory> list() {
        return sysFactoryMapper.list();
    }

    @Override
    public void insertFactory(SysFactory date) {
        sysFactoryMapper.insertFactory(date);
    }

    @Override
    public List<Map<String, Object>> selectFactoryCount() {
        return sysFactoryMapper.selectFactoryCount();
    }
}
